package com.zgp.config;

import com.zgp.tools.WeatherService;
import org.springframework.ai.tool.ToolCallback;
import org.springframework.ai.tool.ToolCallbacks;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author zgp
 * @version V1.0
 * @date 2025-04-27 11:18
 */
@Configuration
public class McpConfig {

    @Bean
    public List<ToolCallback> weatherTools(WeatherService weatherService){
        return List.of(ToolCallbacks.from(weatherService));
    }
}
